package com.yanqu.road.server.cmd.union.cross;

import com.yanqu.road.pb.union.UnionProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;
import com.yanqu.road.utils.string.StringUtils;

@Cmd(code = Protocol.S_UNION_NOTICE_LIST, desc = "获取公告列表")
public class UnionNoticeListCmd extends AbstractCommand {



	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {

		if(StringUtils.isNullOrEmpty(player.getUserInfo().getUnionUid())){
			return;
		}

		player.sendPacket(Protocol.C_UNION_NOTICE_LIST, UnionProto.UnionNoticeReqMsg.newBuilder());

	}

	@Override
	public void sendData(GamePlayer player) {
	}

}
